package com.arron.adapter.classadapter;

public class Computer {
    public void charging(IVoltage12V v){
        int outV = v.output12V();
        if (outV == 12) {
            System.out.println("12v充电中");
        } else if (outV > 12) {
            System.out.println("大于12v电压过高");
        }
    }
}
